import { createApp } from "vue";
import App from "./App.vue";
import setupPlugins from "@/plugins";
import { createPinia } from "pinia";

// 本地SVG图标
import "virtual:svg-icons-register";

// 样式
import "element-plus/theme-chalk/dark/css-vars.css";
import "element-plus/theme-chalk/index.css";
import "@/styles/index.scss";
import "uno.css";
import "animate.css";
//完整导入 UI 组件
import VxeUI from "vxe-pc-ui";
import "vxe-pc-ui/lib/style.css";
//vxe-table完整的表格
import "xe-utils";
import VXETable from "vxe-table";
import "vxe-table/lib/style.css";
import VueDompurifyHtml from "vue-dompurify-html";

const app = createApp(App);

// 注册插件
app.use(setupPlugins);
app.use(VxeUI);
app.use(VXETable);
app.use(VueDompurifyHtml);

const pinia = createPinia();

// 在应用中使用 Pinia
app.use(pinia);

app.mount("#app");
